package com.xiaoxi.xirpc.fault.tolerant;

import com.xiaoxi.xirpc.model.RpcResponse;

import java.util.Map;

/**
 *  容错策略
 */
public interface TolerantStrategy {

    /**
     *  容错
     * @param context
     * @param e
     * @return
     */
    RpcResponse doTolerant(Map<String, Object> context, Exception e);
}
